﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YJ_Core.Entities.Utils;

namespace YJ_App.Admin_System.Dtos
{
    /// <summary>
    /// 用户管理dto
    /// </summary>
    public class UserAdminDto
    {
        /// <summary>
        /// 用户列表-输入
        /// </summary>
        public class SelectUserListInput : InputPageBase
        {
            /// <summary>
            /// 搜索关键字
            /// </summary>
            public string SearchKeyword { get; set; }

            /// <summary>
            /// 开始时间
            /// </summary>
            public DateTime? StartDate { get; set; }

            /// <summary>
            /// 结束时间
            /// </summary>
            public DateTime? EndDate { get; set; }
        }

        /// <summary>
        /// 用户列表-输出
        /// </summary>
        public class SelectUserListOutput
        {
            /// <summary>
            /// 用户id
            /// </summary>
            public string UserId { get; set; }

            /// <summary>
            /// 用户昵称
            /// </summary>
            public string NickName { get; set; }

            /// <summary>
            /// 用户名（账号）
            /// </summary>
            public string UserName { get; set; }

            /// <summary>
            /// 邮箱
            /// </summary>
            public string Email { get; set; }

            /// <summary>
            /// 头像路径
            /// </summary>
            public string HeadPortraitPath { get; set; }

            /// <summary>
            /// 创建时间
            /// </summary>
            public DateTime? CreateTime { get; set; }

            /// <summary>
            /// 用户状态
            /// </summary>
            public bool State { get; set; }
        }

        /// <summary>
        /// 用户列表-响应
        /// </summary>
        public class SelectUserListResp : ResponseStatus
        {
            public List<SelectUserListOutput> List { get; set; }

            public int Total { get; set; }
        }

        /// <summary>
        /// 修改用户状态（禁用/启用）-输入
        /// </summary>
        public class UpdateUserStateInput
        {
            /// <summary>
            /// 用户id
            /// </summary>
            public string UserId { get; set; }

            /// <summary>
            /// 状态
            /// </summary>
            public bool State { get; set; }
        }

        /// <summary>
        /// 编辑用户信息-输入
        /// </summary>
        public class UpdateUserInfoInput
        {
            /// <summary>
            /// 用户id
            /// </summary>
            public string UserId { get; set; }

            /// <summary>
            /// 用户昵称
            /// </summary>
            public string NickName { get; set; }

            /// <summary>
            /// 用户名（账号）
            /// </summary>
            public string Account { get; set; }

            /// <summary>
            /// 邮箱
            /// </summary>
            public string Email { get; set; }

            /// <summary>
            /// 用户状态
            /// </summary>
            public bool State { get; set; }
        }
    }
}
